#pragma once

class BaseFiberServer;

class BaseIocpInitiator;
class IocpFiber;

class IocpServerSocketDispatcher : public wxtl::Thread
{
public:
	IocpServerSocketDispatcher(CompletionPort* port, BaseFiberServer* stop);

	virtual void threadProc();

private:
	CompletionPort* m_port;
	wxtl::Event* m_stop;
	BaseFiberServer* m_server;
	size_t m_localOps;
};